#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected slots:

    void onModelChanged();


protected:

    virtual void closeEvent(QCloseEvent *e);

    
private slots:
    void on_actionNew_triggered();

    void on_actionOpen_triggered();

    void on_actionSave_As_triggered();

    void on_actionQuit_triggered();

    void on_actionAdd_triggered();

    void on_actionRemove_triggered();


    void on_actionAdd_Field_triggered();

private:

    Ui::MainWindow *ui;

};

#endif // MAINWINDOW_H
